<html>
<head><title>Accept/Deny Pending Announcements</title>
<link rel="stylesheet" type="text/css" href="css/Default.css" />
<Script language="javascript" src="data/password.js"></script>
<Script language="javascript" src="exec/login.js"></script>
<noscript>
location.href="noscript.html";
</noscript>
<SCRIPT LANGUAGE="JavaScript">

	window.onload = redir(0);

//name of cookie: 'eomdmf'

</SCRIPT>
</head>
<br>
<center><h1>Pending Announcements</h1><center>
<br>
<body>

<center><p style="font-family: Arial; font-size:20px">Pending announcements are displayed 
in the box below and can be edited.<br> If you would like to accept an announcement, leave it in the text box.
If you want to remove an announcement, delete it. When you are satisfied with what is going to be posted, click "Submit News"
</p><center>
<form method="POST" action="Submit_P_Announcements.php"> 
<center>
<label for="Announcements"><span class="req"></span></label>
<textarea name="Announcements" id="Announcements" rows="20" cols="70" style="color:000000; font-family: Arial;border: 2px solid black">
<?php 
$i=0;
$fh = fopen("data/pending_a.txt", "r"); //Opens the pending announcement file
while(!feof($fh))
{
	$item[$i]=fgets($fh);
	echo $item[$i]; //Displays the array of pending announcements
	$i++;
}
fclose($fh);

?></textarea>
<br></center><br>
<center><input id="subbut" type="submit" value="Submit News"></center>

</form>

<FORM METHOD="LINK" ACTION="index.html">
<INPUT TYPE="submit" VALUE="Home Page">
</FORM>
		
<FORM METHOD="LINK" ACTION="LoggedIn.php">
<INPUT TYPE="submit" VALUE="Return to Main Menu">
</FORM>
</body>
</html>
